<?php

namespace App\Http\Controllers;

use App\Models\User;
use Dingo\Api\Auth\Auth;
use Illuminate\Http\Request;
use Overtrue\EasySms\Exceptions\NoGatewayAvailableException;

class TestController extends Controller
{
    //
    public function index()
    {
        $user=User::first();
        Auth::guard('api')->fromUser($user);
    }
}
